﻿<UserControl x:Class="BookReader.Controls.PageViewer"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:BookReader.Controls"
    Loaded="UserControl_Loaded">
    <Grid Name="PageViewerGrid">
        <ScrollViewer Margin="0,0,0,0" Name="PageContent" Focusable="False"
                    VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto"
                      Background="{DynamicResource WindowBackgroundBrush}">
            <Image Name="PageImage" Focusable="True" IsHitTestVisible="True"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"
                    PreviewMouseWheel="PageContent_PreviewMouseWheel"
                    PreviewKeyUp="PageContent_PreviewKeyUp" 
                    PreviewKeyDown="PageContent_PreviewKeyDown"
                    PreviewMouseLeftButtonDown="PageContent_PreviewMouseLeftButtonDown"
                    PreviewMouseLeftButtonUp="PageContent_PreviewMouseLeftButtonUp"
                    PreviewMouseMove="PageContent_PreviewMouseMove"
                   >
            </Image>
        </ScrollViewer>
        <local:MagnifyGlass x:Name="Magnifier" Panel.ZIndex="500" />
    </Grid>
</UserControl>
